//
//  YNewsXViewController.m
//  shijianpinggu
//
//  Created by apple on 2017/1/17.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "YNewsXViewController.h"

@interface YNewsXViewController ()

@property (weak, nonatomic) IBOutlet UILabel *countLabel;

@property(nonatomic,strong)UILabel *titleLabel;
@end

@implementation YNewsXViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"系统消息";
    
    
    
    
    //更改行间距
    NSMutableAttributedString * attributedString1 = [[NSMutableAttributedString alloc] initWithString:_countLabel.text];
    
    NSMutableParagraphStyle * paragraphStyle1 = [[NSMutableParagraphStyle alloc] init];
    
    [paragraphStyle1 setLineSpacing:10.0];
    
    [attributedString1 addAttribute:NSParagraphStyleAttributeName value:paragraphStyle1 range:NSMakeRange(0, [_countLabel.text length])];
    
    [_countLabel setAttributedText:attributedString1];
    
    //设置行间距后适配高度显示
    
    [_countLabel sizeToFit];
    
    
   // [self.view addSubview:_titleLabel];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
